<html>
<head>
<link href="<s:url value='/styles/popupitemdetails.css'/>"
	rel="stylesheet" media="screen" />

<link href="<s:url value='js/validation/validationEngine.jquery.css'/>"
	rel="stylesheet" media="screen" />
<script type="text/javascript"
	src="<s:url value='/js/popupitemdetails.js'/>"></script>
</head>
<body>
	<div id="itemDetailsContent">
		<!-- SET BG -->
		<s:if test="%{model.itemCategory==1}">
			<style>
#itemImage {
	background: #fff url(styles/mbcnImageHover/bgbuy.jpg) no-repeat center
		center;
}
</style>
		</s:if>
		<s:elseif test="%{model.itemCategory==2}">
			<style>
#itemImage {
	background: #fff url(styles/mbcnImageHover/bgsell.jpg) no-repeat center
		center;
}
</style>
		</s:elseif>
		<s:elseif test="%{model.itemCategory==4}">
			<style>
#itemImage {
	background: #fff url(styles/mbcnImageHover/bgreceive.jpg) no-repeat
		center center;
}
</style>
		</s:elseif>
		<s:else>
			<style>
#itemImage {
	background: #fff url(styles/mbcnImageHover/bggive.jpg) no-repeat center
		center;
}
</style>
		</s:else>
		<!-- END SET BG -->
		<div id="content">
			<div id="itemImage">
				<img src="imagesUserUploaded/${model.itemImage}"
					onerror="this.style.display='none'" />
			</div>
			<div id="itemDetails">
				<div id="itemTitle">${model.itemTitle}</div>
				<div id="itemInfo">
					<label class="labItemInfo"> Gửi ngày: <fmt:formatDate pattern="dd-MM-yyyy"
							value="${model.itemDatePost}" /> bởi
					</label> <a href="#" onclick="javascript:memberDetails();" class="labItemInfo"><label class="labItemInfo"> ${model.memberNm} </label>
							<s:hidden name="memberId" id="memberId" value="%{model.memberId}" />						
						<div id="divTinyAvt">

							<img onerror="this.style.display='none'"
								src="imagesUserUploaded/${model.memberAvt}" id="tinyAvt" />
						</div> </a>
				</div>
				<div id="itemContent">${model.itemContent}</div>
			</div>

		</div>


	</div>
</body>
</html>